package com.sakiko.test;

import com.sakiko.aop_03.Calculator;
import com.sakiko.config.JavaConfig03;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

//@SpringJUnitConfig(locations = "classpath:spring_aop01.xml")
@SpringJUnitConfig(JavaConfig03.class)
public class SpringTest03 {

    @Autowired
    private Calculator calculator;

    @Test
    public void test01() {
        int add = calculator.add(1, 1);
        System.out.println("add: " + add);
    }

}
